@extends('default.layouts.adminPublic')
@section('title', '添加省份区管理')

@section('content')
        <!--导航开始-->
<div class="crumb_warp">
    <i class="fa fa-home"></i> <a href="{{url('admin/coll_area')}}">首页</a> &raquo; 地区管理
</div>
<!--导航结束-->
<!--结果集标题与导航组件 开始-->

<div class="con">
    <div class="manage">
        @if(count($errors)>0)
            <div class="mark">
                @if(is_object($errors))
                    @foreach($errors->all() as $error)
                        <p>{{$error}}</p>
                    @endforeach
                @else
                    <p>{{$errors}}</p>
                @endif
            </div>
        @endif
    </div>
    <div class="conMain">
        <div class="result_wrap">
            <div class="cTitle">添加省份管理</div>
            <div class="cContent">
                <span><a href="{{url('admin/coll_area')}}"><i class="fa fa-recycle"></i>查看管理列表</a></span>
            </div>
        </div>

        <div class="conInfo">
            <div class="conAddList">
                <form action="{{url('admin/province_store')}}" method="post"  onsubmit="return checkForm('#pform')" id="pform" name="pform">
                    {{csrf_field()}}
                    <input name="pid" value="" type="hidden"/>
                    <input name="grade" value="1" type="hidden"/>
                    <dl>
                        <dt><i class="require">*</i>省份编码：</dt>
                        <dd>
                            <input type="text" class="inpText" name="cid" value="{{old('cid')}}"  id="cid" placeholder="请输入6位数编码">
                            <span><i class="fa fa-exclamation-circle yellow"></i>省份编码必须是以0000结尾的6位数数字组合</span>
                        </dd>
                    </dl>
                    <dl>
                        <dt><i class="require">*</i>省份名称：</dt>
                        <dd><input type="text" class="inpText" value="{{old('name')}}" name="name" id="name" placeholder="请输入省份名称"></dd>
                    </dl>
                    <dl>
                        <dt>省份排序：</dt>
                        <dd><input type="text" class="inpText" value="{{old('sort')}}" name="sort" id="sort"></dd>
                    </dl>
                    <dl>
                        <dt></dt>
                        <dd>
                            <input type="submit" class="sub" value="提交">
                            <input type="button" class="sub but" onclick="history.go(-1)" value="返回">
                        </dd>
                    </dl>
                </form>
            </div>
        </div>
        <div class="stopper" style="margin-top:15px; border-top: 1px solid #e5e5e5"></div>
    </div>
</div>
<!--结果集标题与导航组件 结束-->
@endsection

